using System;
using System.Text;
using System.Web;
namespace Senparc.Weixin.MP.TenPayLib
{
	public class QRCode
	{
		public static string UrlEncode1(string con)
		{
			string text = System.Web.HttpUtility.UrlEncode(con, Encoding.UTF8);
			return text.Replace("+", "%20");
		}
		public static string QRfromGoogle(string chl)
		{
			int num = 300;
			string text = "L";
			int num2 = 0;
			chl = QRCode.UrlEncode1(chl);
			return string.Concat(new object[]
			{
				"http://chart.apis.google.com/chart?chs=",
				num,
				"x",
				num,
				"&cht=qr&chld=",
				text,
				"|",
				num2,
				"&chl=",
				chl
			});
		}
	}
}
